package com.example.springboot.work;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @program: 12-springboot-rabbitmq
 * @description: RabbitConfig
 * @author: Yuwl
 * @create: 2019-12-27 16:36
 **/
@Configuration
public class RabbitConfig {

	@Bean
	public Queue queue() {
		return new Queue("q_hello");
	}
}
